import request from '@/utils/request'

// 查询行政区域详细
export function getZoneByOrgId(id) {
  return request({
    url: '/extend/serverZone/getZoneByOrgId/' + Number(id),
    method: 'get'
  })
}

// 查询服务区域列表
export function listServerZone(query) {
  return request({
    url: '/extend/serverZone/list',
    method: 'get',
    params: query
  })
}

// 查询服务区域详细
export function getServerZone(id) {
  return request({
    url: '/extend/serverZone/' + id,
    method: 'get'
  })
}

// 新增服务区域
export function addServerZone(data) {
  return request({
    url: '/extend/serverZone',
    method: 'post',
    data: data
  })
}

// 修改服务区域
export function updateServerZone(data) {
  return request({
    url: '/extend/serverZone',
    method: 'put',
    data: data
  })
}

// 删除服务区域
export function delServerZone(id) {
  return request({
    url: '/extend/serverZone/' + id,
    method: 'delete'
  })
}

